package com.ostrich.cloud.ostrichOrderService.common;

import com.ostrich.cloud.common.resultcode.ResultCode;

public enum OstrichOrderServiceResultCode implements ResultCode {

    ADD_ERROR(500, "添加失败"),
    NUMBER_ERROR(501,"数量不够"),
    NULL_ERROR(503,"没有东西"),
    MODIFY_ERROR(504,"修改失败"),
    DEL_ERROR(505,"删除失败"),
    MONEY_ERROR(505,"余额不够")

    ;

    private int code;
    private String message;

    private OstrichOrderServiceResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
